home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 8 / Revista CD Expert nº 08 CD1.iso / Utilitarios / Programacao / Pacific C for DOS / INCLUDE / IOCTL.H < prev    next >
C/C++ Source or Header  |  1995-03-08  |  768b  |  29 lines

  1. /*
  2.  *    Header info for the DOS ioctl() call
  3.  *
  4.  *    ioctl(file, func, val)
  5.  *    int file, func, val;
  6.  *
  7.  */
  8.  
  9. extern int    ioctl(int, int, ...);
  10.  
  11. #define    GETINFO    0        /* return device flag word */
  12. #define    SETINFO    1        /* set device info */
  13. #define    GETISTS    6        /* get input status */
  14. #define    GETOSTS    7        /* get output status */
  15.  
  16. /*
  17.  *    Flag bits returned from GETINFO
  18.  */
  19.  
  20. #define    ISCIN    1        /* device is console input */
  21. #define    ISCOUT    2        /* device is console output */
  22. #define    ISNUL    4        /* device is the black hole */
  23. #define    ISCLK    8        /* tick tock */
  24. #define    RAW    0x20        /* not cooked, dummy! */
  25. #define    ATEOF    0x40        /* at EOF */
  26. #define    ISDEV    0x80        /* this is a device, not a file */
  27. #define    CTRL    0x4000        /* can process control strings, whatever they are */
  28.  
  29.